<?php
 defined("BASEDIR") or die();
 
 class Application_Model_Log
 {
/**
 *
 *
 *
 */
	public function __construct()
	{
		if(!is_writable(LOG_DIR)) return;
	}
	
/**
 *
 *
 *
 */
	public function addEntry($filename = "access", $content)
	{
		$file = LOG_DIR.$filename."_".date("Ymd").".log";
		$content = "[".date("Y-m-d H:i:s")."] ".$content." \n";
		file_put_contents($file, $content, FILE_APPEND);
	}
 }
?>